package hku.cs.lunuo.cost;

class Error{
	String klassName;
	int index;
	public Error(String klassName, int index) {
		super();
		this.klassName = klassName;
		this.index = index;
	}
	@Override
	public boolean equals(Object obj) {
		Error e = (Error)obj;
		if(this.klassName.equals(e.klassName)&&this.index==e.index)
			return true;
		else 
			return false;
	}
	
	public String toString(){
		return klassName+" "+ index;
	}
	
}